package com.ruge.user.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ruge.wu
 * @since 2022/2/9 15:02
 */
@Getter
@Setter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "保存博客数据")
public class SavaBlogRequest {
    @NotNull(message = "aid 必填")
    @ApiModelProperty("用户id")
    private Long aid;
    @NotBlank(message = "文章 必填")
    @ApiModelProperty("文章")
    private String content;
}
